package com.yhb.dao;

import com.yhb.model.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageMapper {

    int add(@Param("message") Message message);

    List<Message> userMessagesOfType(@Param("userId") String userId, @Param("type") Message.Type type);

    List<Message> userFirstMessagesOfType(@Param("userId") String userId, @Param("type") Message.Type type);
}
